package cn.swjtuhc.ss.hljapi.service;

import cn.swjtuhc.ss.hljapi.pojo.User;
import cn.swjtuhc.ss.hljapi.pojo.Volunteer;
import cn.swjtuhc.ss.hljapi.pojo.VolunteerLoginRequest;
import cn.swjtuhc.ss.hljapi.pojo.response.VolunteerLoginResponse;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

/**
* @author 15854
* @description 针对表【volunteer】的数据库操作Service
* @createDate 2024-08-27 19:00:40
*/
@Service
public interface VolunteerService extends IService<Volunteer> {

    /**
     * 注册
     * @param volunteer
     */
    void register(Volunteer volunteer);

    /**
     * 检查用户名是否存在
     * @param username
     * @return
     */
    Boolean checkUsernameExists(String username);

    /**
     * 志愿者登录
     * @param request
     * @return
     */
    VolunteerLoginResponse login(VolunteerLoginRequest request);
}
